<include file="public@header"/>
</head>
<body style="background-color: #E5F3E6">
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
    <!--equipment 不能写成 equipment  否则会报控制器不存在-->
        <li><a href="{:url('equipment/equipmentIndex')}">设备</a></li>
		<li  class="active"><a href="{:url('equipment/equipmentAdd')}">添加设备</a></li></li>
    </ul>
    <!-- js-ajax-form-->
    <form class="form-horizontal margin-top-20" action="{:url('equipment/equipmentAddPost')}" method="post">
        <div class="form-group">
            <label for="input-equipmentCode" class="col-sm-2 control-label"><span class="form-required">*</span>设备编号</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-equipmentCode" name="equipmentCode">
            </div>
        </div><div class="form-group">
            <label for="input-equipmentName" class="col-sm-2 control-label"><span class="form-required">*</span>设备名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-equipmentName" name="equipmentName">
            </div>
        </div>
		<div class="form-group">
            <label for="input-equimentType" class="col-sm-2 control-label"><span class="form-required">*</span>设备类别</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-equimentType" name="equimentType">
            </div>
        </div>
		<div class="form-group">
                <label for="input-parent_id" class="col-sm-2 control-label"><span class="form-required">*</span>所属部门</label>
                <div class="col-md-6 col-sm-10">
                    <select class="form-control" name="depart_id" id="input-depart_id" 
                     onchange="searchStation()">
                        <option value="0">作为一级菜单</option>{$select_category}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="input-stationID" class="col-sm-2 control-label"><span class="form-required">*</span>所属岗位</label>
                <div class="col-md-6 col-sm-10">
                    <select class="form-control" name="stationID" id="select_station"
                           >
                    </select>
                </div>
            </div>
		<div class="form-group">
            <label for="input-isSpecial" class="col-sm-2 control-label"><span class="form-required">*</span>是否特种设备</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-isSpecial" name="isSpecial">
            </div>
        </div>
		
		<div class="form-group">
            <label for="input-memos" class="col-sm-2 control-label"><span class="form-required">*</span>备注</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-memos" name="memos">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>